package com.pxxy.toturial.dao.impl;

import com.pxxy.toturial.dao.ComputerDao;
import com.pxxy.toturial.entity.Computer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.sql.DataSource;
import java.io.Serializable;

/******************
 * @Author yejf
 * @Description TODO
 */
@Component
public class ComputerDaoImpl implements ComputerDao {

    @Autowired
    private DataSource dataSource;

    @Override
    public int save(Computer computer) {
        System.out.println("ComputerDaoImpl的 save 方法执行了..");
        return 0;
    }

    @Override
    public Computer findById(Serializable id) {
        System.out.println("ComputerDaoImpl的 findById方法执行了...");
        return null;
    }
}
